# -*- coding: utf-8 -*-

# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html

import scrapy


class SoccerResultItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    parent_title = scrapy.Field()
    parent_url = scrapy.Field()
    pass

class BifenGetItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    type = scrapy.Field()
    leagueName = scrapy.Field()
    matchTime = scrapy.Field()
    homeTeam = scrapy.Field()
    guestTeam = scrapy.Field()
    homeGoal = scrapy.Field()
    guestGoal = scrapy.Field()
    fullGoal = scrapy.Field()
    finalResult = scrapy.Field()

    shuju_urls = scrapy.Field()
    yazhou_urls = scrapy.Field()
    ouzhou_urls = scrapy.Field()
    daxiao_urls = scrapy.Field()
    gameId = scrapy.Field()
    halfGoal = scrapy.Field()
    # item['shuju_urls'] = Selector(text=baseInfo[i]).xpath('//tr/td[9]/a[1]/@href').extract()[0]
    # item['yazhou_urls'] = Selector(text=baseInfo[i]).xpath('//tr/td[9]/a[2]/@href').extract()[0]
    # item['ouzhou_urls'] = Selector(text=baseInfo[i]).xpath('//tr/td[9]/a[3]/@href').extract()[0]
    # item['daxiao_urls'] = 'http://odds.500.com/fenxi/daxiao-' + item['gameId'] + '.shtml'
    bs_jiaozhan = scrapy.Field()
    bs_home_zhanji = scrapy.Field()
    bs_guest_zhanji = scrapy.Field()

    avwinc2 = scrapy.Field()
    avdrawc2 = scrapy.Field()
    avlostc2 = scrapy.Field()
    avwinj2 = scrapy.Field()
    avdrawj2 = scrapy.Field()
    avlostj2 = scrapy.Field()

    yazhouj = scrapy.Field()
    yazhouc = scrapy.Field()

    daxiaoj = scrapy.Field()
    daxiaoc = scrapy.Field()
    dateTime = scrapy.Field()
    pass

class MatchGetItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    type = scrapy.Field()

    leagueName = scrapy.Field()
    matchTime = scrapy.Field()
    homeTeam = scrapy.Field()
    guestTeam = scrapy.Field()

    shuju_urls = scrapy.Field()
    yazhou_urls = scrapy.Field()
    ouzhou_urls = scrapy.Field()
    daxiao_urls = scrapy.Field()
    gameId = scrapy.Field()

    bs_jiaozhan = scrapy.Field()
    bs_home_zhanji = scrapy.Field()
    bs_guest_zhanji = scrapy.Field()

    avwinc2 = scrapy.Field()
    avdrawc2 = scrapy.Field()
    avlostc2 = scrapy.Field()
    avwinj2 = scrapy.Field()
    avdrawj2 = scrapy.Field()
    avlostj2 = scrapy.Field()

    yazhouj = scrapy.Field()
    yazhouc = scrapy.Field()

    daxiaoj = scrapy.Field()
    daxiaoc = scrapy.Field()
    dateTime = scrapy.Field()
    pass
